﻿using Face8280WebSocketServer.Utility.VerifyAttribute;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace Face8280WebSocketServer.Controllers.FaceDevice
{
    /// <summary>
    /// 新增远程任务接口参数
    /// </summary>
    public class DeviceRemoteAddParameter
    {
        /// <summary>
        /// 包含需要新增的设备ID
        /// </summary>
        [Required]
        public List<int> DeviceIDs { get; set; }

        [VerifyTextRange(sRange: new string[] { "opendoor", "closealarm", "restart", "reset", "emptyPeople" },
                      errCode: 1, sErrorDesc: "远程操作类型不正确")]
        public string Remote { get; set; }
    }
}
